<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddImportOpenFullTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->unsignedInteger('merchantConfirmTime')
                  ->default(0)
                  ->after("openTime")
                  ->comment("商家确址时间");
        });

        Schema::table('open_shop_start_business', function (Blueprint $table) {
            $table->unsignedInteger('energy')->default(0)->comment("能源费 分");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->dropColumn('merchantConfirmTime');
        });

        Schema::table('open_shop_start_business', function (Blueprint $table) {
            $table->dropColumn('energy');
        });
    }
}
